CardConfig

constructor(isSwipeRefreshEnabled: Boolean)

Create an instance of Card Configuration.

Parameters

isSwipeRefreshEnabled

true if swipe refresh should be enabled, else false.


constructor(@DrawableRes cardPlaceHolderImage: Int = CARD_CONFIG_DEFAULT_PLACE_HOLDER_IMAGE_RESOURCE_ID, @DrawableRes inboxEmptyImage: Int = CARD_CONFIG_DEFAULT_EMPTY_INBOX_IMAGE_RESOURCE_ID, cardsDateFormat: String = CARD_CONFIG_DEFAULT_DATE_FORMAT, isSwipeRefreshEnabled: Boolean = CARD_CONFIG_DEFAULT_SWIPE_REFRESH_STATE)

Parameters

cardPlaceHolderImage

SDK shows a placeholder image in case the image download fails. In case you want to change the placeholder image pass in the resource id of the image else pass -1.

inboxEmptyImage

SDK shows an image indicating inbox is empty. In case you want to change the image pass in the resource id of the image else pass -1.

cardsDateFormat

String for formatting date shown on each card.

isSwipeRefreshEnabled

true if swipe refresh should be enabled, else false.